<h1>New Ingredient</h1>

<%= error_messages_for :ingredient_type %>

<% form_for(@ingredient_type) do |f| %>
  <p>
    Name of Ingredient <%= f.text_field :name%>
  </p>
  <p>
    Unit of Measure <%= f.text_field :unit%>
  </p>
  <p>
    Cost per Unit <%= f.text_field :cost%>
  </p>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', ingredient_types_path %>
